---
layout: default
---

<!-- 遍历分页后的文章 -->
<ol class="post-list">
    
    
<div class="posts">
    {% for post in paginator.posts %}
     <li>

    
    <div class="post">
        <h3 class="post-list__post-title"><a href="{{ post.url }}" title="访问 {{ post.title }}">{{ post.title }}</a></h3>
        
        <p class="excerpt">{{ post.content | strip_html | strip_newlines | truncate: 200 }}&hellip;</p>
        
        <p class="post-meta">
        <span class="home-post-date">
            {{ post.date | date: "%Y-%m-%d" | upcase }}
        </span>
        {% if post.categories.size > 0 %}
        •
        {% for cat in post.categories %}
        <a class="post-cat" href="{{ site.url }}/categories/#{{ cat }}">{{ cat }}</a>
        {% unless forloop.last %}
        <span>/</span>
        {% endunless %}
        {% endfor %}
        {% endif %}
        </p>
        


<hr class="home-post-list__divider" />

    </div>
    {% endfor %}
</div>

<!-- 分页链接 -->
<div class="pagination">
    {% if paginator.previous_page %}
        {% if paginator.page == 2 %}
            <a class="pagination-item newer" href="/">最近</a>
        {% else %}
            <a class="pagination-item newer" href="/page/{{paginator.previous_page}}">最近</a>
        {% endif %}
    {% else %}
        <span class="pagination-item newer">最近</span>
    {% endif %}
   
    <span class="page_number ">{{ paginator.page }} / {{ paginator.total_pages }}</span>

    {% if paginator.next_page %}
        <a class="pagination-item older" href="/page/{{paginator.next_page}}">更早</a>
    {% else %}
        <span class="pagination-item older">更早</span>
    {% endif %}
</div>

 </li>
  </ol>
